﻿<%@ Page Title="" Language="C#" MasterPageFile="~/admin_cms/admin_master.master"
    AutoEventWireup="true" CodeFile="admin_hangbay.aspx.cs" Inherits="admin_cms_Banner" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <p style="text-align: center; text-transform: uppercase; color: #04A0E9; padding-bottom: 20px;">
        Danh sách quản lý hãng bay 
    </p>
    <div class="khung_form1">
        <h3>Tên hãng bay:
        </h3>
        <asp:TextBox runat="server" ID="txt_tenhang" Width="200px" EnableViewState="false" class="txtform"></asp:TextBox>
    </div>
    <div class="khung_form1">
        <h3>Ghi chú:
        </h3>
        <asp:TextBox runat="server" ID="txt_ghichu" Width="313px" EnableViewState="false" class="txtform"></asp:TextBox>
    </div>

    <div class="khung_form1">
        <asp:Button runat="server" CssClass="bt_click" ID="btlthem" Text="Thêm mới" OnClick="bt_clickthem" />
        <asp:Button runat="server" CssClass="bt_click1" ID="Button1" Visible="false" Text="Sửa dữ liệu"
            OnClick="bt_suaclick" />
    </div>
    <asp:GridView runat="server" ID="dtlQC" AllowPaging="true" OnRowCommand="btchange"
        PageSize="15" OnPageIndexChanging="btthaydoi" AutoGenerateColumns="false" CssClass="grid_menu_all_style"
        RowStyle-CssClass="grid_rows" Width="100%">
        <Columns>
            <asp:BoundField HeaderText="Tên hãng bay" DataField="Name" ItemStyle-HorizontalAlign="Center"
                HeaderStyle-CssClass="grid_menu_all_header_style" ItemStyle-CssClass="grid_menu_all_item_style" />
            <asp:BoundField HeaderText="Ghi Chú" DataField="GhiChu" ItemStyle-HorizontalAlign="Center"
                HeaderStyle-CssClass="grid_menu_all_header_style" ItemStyle-CssClass="grid_menu_all_item_style" />
        </Columns>
        <Columns>
            <asp:TemplateField HeaderText="Sửa" ItemStyle-HorizontalAlign="Center" HeaderStyle-CssClass="grid_menu_all_header_style"
                ItemStyle-CssClass="grid_menu_all_item_style">
                <ItemTemplate>
                    <asp:LinkButton runat="server" ID="Sua" Text="Sửa" CommandName="S" CommandArgument='<%#Eval("Id") %>'>
                     <img src="style/cssTran/img/write_16.png" />
                    </asp:LinkButton>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>

        <Columns>
        <asp:TemplateField HeaderText="Xóa" ItemStyle-HorizontalAlign="Center" HeaderStyle-CssClass="grid_menu_all_header_style"
                        ItemStyle-CssClass="grid_menu_all_item_style">
                <ItemTemplate>
                    <asp:LinkButton runat="server" ID="Xoa" Text="Xóa" CommandName="X" CommandArgument='<%#Eval("Id") %>'>
         <img alt='' src='style/cssTran/img/close_16.png' title='Click to Delete' />
                    </asp:LinkButton>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
    <%-- <div class="khung_form1">
        <asp:Button runat="server" CssClass="bt_click" ID="btlthem" Text="Thêm mới" OnClick="bt_clickthem" />
        <asp:Button runat="server" CssClass="bt_click1" ID="Button1" Visible="false" Text="Sửa dữ liệu"
            OnClick="bt_suaclick" />
    </div>--%>
</asp:Content>
